package com.wft.chapter06;

public class TestGC {
    public static void main(String[] args) {
        for (int i = 0; i < 10; i++) {
            new TestGC();
//            System.gc();
            Runtime.getRuntime().gc();
        }
    }

    @Override
    protected void finalize() throws Throwable {
        System.out.println("gc......");
    }
}
